package com.zhgxi.zf.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;

import com.zhgxi.zf.entity.EventType;
import com.zhgxi.zf.service.EventTypeService;

@Controller("EventTypeAction")
public class EventTypeAction {

	@Resource
	private EventTypeService eventTypeService;

	public List<EventType> findAll() {
		List<EventType> list = eventTypeService.findAll();
		return list;
	}

	public boolean saveType(EventType type) {
		return eventTypeService.saveType(type);
	}

	public boolean deleteType(EventType t) {
		return eventTypeService.deleteType(t);
	}

	public List<EventType> findByTname(String rname) {
		return eventTypeService.findByTname(rname);
	}

}
